﻿Imports DAO

Public Class NguoiDungBUS

    Shared Function layDSNguoiDung() As DataTable
        Return NguoiDungDAO.layDSNguoiDung()
    End Function

    Shared Function themNguoiDung(nd As DTO.NguoiDungDTO) As Integer
        Return NguoiDungDAO.themNguoiDung(nd)
    End Function

    Shared Function kiemTraTrung(tenTK As String) As Boolean
        Return NguoiDungDAO.kiemTraTrung(tenTK)
    End Function

    Shared Function layQuyenCuaND(maND As String) As String
        Return NguoiDungDAO.layTenQuyenCuaND(maND)
    End Function

    Shared Function layThongTinNDBangTaiKhoan(taiKhoan As String) As DTO.NguoiDungDTO
        Return NguoiDungDAO.layThongTinNDBangTaiKhoan(taiKhoan)
    End Function

    Shared Function capNhatNguoiDung(nd As DTO.NguoiDungDTO) As Integer
        Return NguoiDungDAO.capNhatNguoiDung(nd)
    End Function
    Shared Function ktMatKhau(mk As String, maND As String) As Integer
        Return NguoiDungDAO.ktMatKhau(mk, maND)
    End Function

    Shared Function doiMatKhau(mk As String, maND As String) As Integer
            Return NguoiDungDAO.doiMatKhau(mk, maND)
    End Function

End Class
